#include "aerial\Object\Object.h"


#include "aerial\Scene\SceneManager.h"
#include "aerial\Core\NetIO.h"

using namespace air;

HGE* IObject::hge = 0;
hgeResourceManager* IObject::hgeResMan = 0;
hgeParticleManager* IObject::hgeParMan = 0;
NetIO* IObject::netIO = 0;
hgeFont* IObject::fnt = 0;

NetIO* IGuiObject::netIO = 0;

void IObject::initialize(HGE* _hge, hgeResourceManager* _hgeResMan, hgeParticleManager* _hgeParMan, NetIO* _netIO)
{
	hge = _hge;
	hgeResMan = _hgeResMan;
	hgeParMan = _hgeParMan;
	netIO = _netIO;
	fnt = hgeResMan->GetFont("fnt.original");
}

void IGuiObject::initialize(NetIO* _netIO)
{
	netIO = _netIO;
}

bool IGuiObject::addToGui(SceneManager* sceneMan, IGuiObject* _anchor)
{
	 sceneMan->addGuiObject(this);
	 anchor = _anchor;
	 return true;
}
